package com.project.controller;

import com.alibaba.dubbo.config.annotation.Reference;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import wt.DrugSalesService;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin(value={ "*" },allowCredentials = "true")
public class DrugSalesController {
    @Reference
    DrugSalesService service;

    @RequestMapping("getDrug")
    public Object getDrug(String medicines_class,String create_time,String create_tim){
        List<Map<String,Object>> getDrug = service.getDrug(medicines_class,create_time,create_tim);
        return getDrug;
    }
    @RequestMapping("rank")
    public Object Drugranking(String medicines_class,String create_time,String create_tim){
        List<Map<String,Object>> Drugranking = service.Drugranking(medicines_class,create_time,create_tim);
        return Drugranking;
    }
}
